package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.domain.Banner;
import cn.wolfcode.luowowo.query.BannerQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IBannerService {
    //获取全部
    List<Banner> list();
    //获取单个
    Banner selectOne(String id);
    //新增
    void save(Banner banner);
    //删除
    void delete(String id);
    //更新
    void update(Banner banner);

    Page<Banner> query(BannerQuery qo);

    void saveOrUpdate(Banner banner);

    List<Banner> queryBanner(int typeTravel);
}
